#ParallelPlatform Project - A web platform to distribute and share knowledge
#Copyright (C) 2011  Daniel Guerrero Martinez & Sergio Rodriguez Lumley
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
from django.conf.urls.defaults import *
from views import *
from django.views.generic.simple import direct_to_template


urlpatterns = patterns('',
    (r'^supervise/$', supervise),
    (r'^contact/$', subject),
    (r'^((?P<id>[\w-]{36})/)edit/$', edit ),
    (r'^((?P<id>[\w-]{36})/)create/$', create ),
    (r'^((?P<id>[\w-]{36})/)erase/$', erase ),
    (r'^((?P<id>[\w-]{36})/)disable/$', disable ),
    (r'^((?P<id>[\w-]{36})/)enable/$', enable ),
    (r'^((?P<id>[\w-]{36})/)commit/(?P<lang>[\w]+)/(?P<version>[\d]+)/$', commitRevision ),
    (r'^((?P<id>[\w-]{36})/)ajax/(?P<action>[\w]+)/$', ajax ),
    (r'^((?P<id>[\w-]{36})/)?$', see),
    (r'^(?P<name>[\w]+)/$', shortcut_link),
    #(r'^(?P<id>(?:.+))?$', see),
)
